import { request } from "../request";

export const deleteTestData = ()=>{
    return request({
        method:"DELETE",
        url:"/api/wF/flowFormTestData"
    })
}

export const apiPublish = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/wF/publish",
        data
    })
}

export const apiGetWfWorkFlowFormData = (formId:any)=>{
    return request({
        method:"Get",
        url:`/api/wF/wfWorkFlowFormData/${formId}`,
    })
}

export const apiUpdateWfWorkFlowFormData = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/wF/updatePublic",
        data
    })
}

export const apiFlowForcast = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/wF/flowForcast",
        data
    })
}

export const apiAddFlowFormData = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/wF/flowFormData",
        data
    })

}

export const apiGetUserApprovalFormList = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/wF/userApprovalFormList",
        data
    })
}


export const apiWFGetWorkFlowProcess = (data:any)=>{
    return request({
        method:"GET",
        url:`/api/wF/workFlowProcess/${data}`
    })
}

export const apiProcessTransitionFlowAsync = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/wF/processTransitionFlow",
        data
    })
}

export const apiInstanceAddExtraSign = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/wF/instanceAddExtraSign",
        data
    })
}